package com.imu.purse.admin.controller.index;

import java.util.HashMap;
import java.util.Map;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.imu.common.annotation.SysLog;
import com.imu.common.utils.R;

/**
 * <p>
 * 首页统计 
 * </p>
 *
 * @author sunhongwei
 * @email sunhongwei@gmail.com
 * @date 2017年11月4日 上午11:07:35
 */
@RestController
@RequestMapping("/index")
public class IndexController extends com.imu.purse.modules.sys.controller.AbstractController
{
	/****
	 * 
	 * @param params
	 * @return
	 */
	@SysLog("首页统计信息")
	@GetMapping("/dashboard")
	public R dashboard(@RequestParam Map<String, Object> params)
	{
		R r = R.ok();
		if(CollectionUtils.isEmpty(params)) return r;
		
		Map<String, Object> data = new HashMap<String, Object>();

		data.put("count", 0);
		data.put("newCount", 0);
		return r.put("data", data);
	}
}
